package com.recommended.service.impl;

import com.recommended.dao.ProfessionalInfoMapper;
import com.recommended.domain.ProfessionalInfo;
import com.recommended.service.ProfessionalInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProfessionalInfoServiceImpl implements ProfessionalInfoService {
    @Autowired
    private ProfessionalInfoMapper professionalInfoMapper;

    @Override
    public int count(ProfessionalInfo professionalInfo) {
        return professionalInfoMapper.count(professionalInfo);
    }

    @Override
    public void insert(ProfessionalInfo professionalInfo) {
        professionalInfoMapper.insert(professionalInfo);
    }

    @Override
    public ProfessionalInfo findOne(String professionalName, Integer universityId) {
        return professionalInfoMapper.findOne(professionalName, universityId);
    }

}
